package com.zone.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zone.demo.domain.entity.Myuser;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author MMinbo
 * @since 2019-10-25
 */
public interface IMyuserService extends IService<Myuser> {

  /**
  * Description 通过名字获取用户
  * @author shao
  * @date 2021/7/8 10:03
  * @param name
  * @return com.zone.demo.domain.entity.Myuser
  */
	public Myuser getUserByName(String name);


	/**
	* Description 删除用户通过名字
	* @author shao
	* @param name:
	* @date 2021/7/8 13:53
	* @return void
	*/
	void deleteUserByName(String name);

   /**
   * Description 添加用户
   * @author shao
    * @param id
    * @param name
    * @param age
    * @param email
   * @date 2021/7/8 10:54
   * @return void
   */
    void addUser(Long id , String name , int age, String email);

    /**
    * Description 通过id更新用户
    * @author shao
     * @param id
     * @param name
     * @param age
     * @param email
    * @date 2021/7/8 10:53
    * @return void
    */
    void updateUserById(Long id ,String name , int age , String email);


    /**
    * Description 通过id获取用户
    * @author shao
     * @param id
    * @date 2021/7/8 10:53
    * @return com.zone.demo.domain.entity.Myuser
    */
    Myuser getUserById(Long id);

    /**
    * Description  加法函数
    * @author shao
     * @param initial
     * @param loop
    * @date 2021/7/8 10:53
    * @return int
    */
    int add(Integer initial, int loop);

    }
